home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’91 / DAL Files / DALtool 4⁄19 (System 6.x) / DalDemo.h < prev    next >
Text File  |  1991-04-19  |  2KB  |  93 lines

  1. #define RSRC_BASE    1000
  2. #define NIL            0L
  3. #define MOVE_TO_FRONT    -1L
  4. #define REMOVE_ALL_EVENTS 0
  5.  
  6. #define APPLE_MENU_ID    1000
  7. #define FILE_MENU_ID    1001
  8. #define EDIT_MENU_ID    1002
  9.  
  10. #define ABOUT_ITEM    1
  11. #define ABOUT_ALERT    1000
  12. #define LOGON_DIALOG 1000
  13. #define ERROR_ALERT_ID 1002
  14.  
  15. #define NO_MBAR    RSRC_BASE
  16. #define NO_MENU    RSRC_BASE + 1
  17. #define NO_WIND RSRC_BASE + 3
  18. #define NO_MEMORY    RSRC_BASE + 4
  19.  
  20. #define OK_BUTTON        1
  21. #define CANCEL_BUTTON    2
  22.  
  23. #define LOGON_NODE    7
  24. #define LOGON_NAME    8
  25. #define LOGON_PSWD    9
  26.  
  27. #define NEW_ITEM    1
  28. #define CLOSE_ITEM     2
  29. #define MONITOR_ITEM    4
  30. #define QUIT_ITEM    6
  31.  
  32. #define UNDO_ITEM    1
  33. #define CUT_ITEM    3
  34. #define COPY_ITEM    4
  35. #define PASTE_ITEM    5
  36. #define CLEAR_ITEM    6
  37.  
  38. #define DRAG_THRESH    30
  39. #define WINDOW_HOME_LEFT    5
  40. #define WINDOW_HOME_TOP    45
  41. #define NEW_WINDOW_OFFSET    20
  42. #define SBarWidth    15
  43.  
  44. #define NIL_WINDOW  0
  45. #define DEMO_WINDOW    1
  46. #define DA_WINDOW    2
  47. #define UNKNOWN_WINDOW    3
  48.  
  49. #define MIN_SLEEP    0L
  50. #define NIL_MOUSE_REGION    0L
  51.  
  52. #define LEAVE_WHERE_IT_IS    FALSE
  53.  
  54. #define TE_ENTER_KEY    3
  55. #define TE_TAB_CHAR        9
  56. #define TE_CARRIAGE_RETURN    13
  57. #define TE_INPUT_AREA    0
  58. #define TE_OUTPUT_AREA    1
  59.  
  60. #define DAL_MONITOR_INTERVAL    120
  61. #define DAL_MAXCOL    50
  62.  
  63. #define WNE_TRAP_NUM    0x60
  64. #define UNIMPL_TRAP_NUM    0x9f
  65.  
  66. #define SUSPEND_RESUME_BIT    0x0001
  67. #define RESUMING 1
  68.  
  69. #define NIL_STR    "\p"
  70. #define FATAL_STR    "\pThat's all she wrote!"
  71.  
  72. /* Type definitions */
  73. typedef struct
  74. {
  75.     WindowRecord    wind;
  76.     int                wType;
  77.     ControlHandle    vScroll, vInScroll, vOutScroll;
  78.     TEHandle        inputTE, outputTE, curTE;
  79. } demoRecord, *demoPeek;
  80.  
  81. /* Function headers */
  82. pascal Boolean SignonFilter();
  83. pascal Boolean NewClikLoop();
  84. void CommonAction(ControlHandle,short *);
  85. void TurnOffTextArea(demoPeek ,int);
  86. void TurnOnTextArea(demoPeek ,int);
  87. void SwitchToNewArea(demoPeek);
  88. void DALReadLink(demoPeek);
  89. void DALDisplayState(demoPeek);
  90. void DALDisplayRow(demoPeek, Ptr *, int);
  91. void DALErrorHandler(demoPeek, int);
  92.  
  93.